# Contributor: rahmanshaber <rahmanshaber@yahoo.com>
# Maintainer: rahmanshaber <rahmanshaber@yahoo.com>
pkgname=corehunt
pkgver=4.5.0
pkgrel=0
pkgdesc="A file finder utility from C-Suite"
arch="all"
url="https://gitlab.com/cubocore"
license="GPL-3.0-or-later"
depends="qt5-qtsvg"
makedepends="qt5-qtbase-dev libcprime-dev cmake ninja"
source="$pkgname-$pkgver.tar.gz::https://gitlab.com/cubocore/corehunt/-/archive/v$pkgver/corehunt-v$pkgver.tar.gz"
builddir="$srcdir/$pkgname-v$pkgver"
options="!check" # No tests

build() {
	cmake ../$pkgname-v$pkgver \
		-GNinja \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib
	ninja
}

package() {
	DESTDIR="$pkgdir" ninja install
}

sha512sums="
ae7e1a2b61eca8cf8f359b20553e83e4487d1634cf64548e776642082fbe6afa3876c7c937139966140d5b6df7b45f87931548486c2b3f39fcb4dd58fa23e05a  corehunt-4.5.0.tar.gz
"
